<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script src="https://cdn.bootcss.com/jquery/3.1.0/jquery.min.js"></script>
  <script src="S_mock.js"></script>
  <script>
    var a1=S_mock.array(5,100,200,true,1);
    var a2=S_mock.array(5,100,200,false,2);
    var n1=S_mock.number();
    var n2=S_mock.number(100,200,true);
    var x1=S_mock.xdata(1,12,'月');
    var x2=S_mock.xdata(2015,2019,'年');
    console.log('随机数组降序',a1);
    console.log('随机数组升序',a2);
    console.log('随机数字默认',n1);
    console.log('随机数字指定',n2);
    console.log('生成x轴数据',x1);
    console.log('生成x轴数据',x2);
  </script>
</body>

</html>